<cfif not structKeyExists(caller,'attributes')>
	<cfset caller.attributes = structNew()/>
</cfif>

<cfset structAppend(caller.attributes,form,false)/>
<cfset structAppend(caller.attributes,url,false)/>

<cfif NOT structKeyExists(attributes,"name")>
	<cfif structKeyExists(attributes,"id")>
		<cfset attributes.name=attributes.id/>
	<cfelseif isDefined("request.ui.form.#tag#.html") and structKeyExists(request.ui.form[tag].html,'name')>
		<cfset attributes.name = request.ui.form[tag].html.name/>
	<cfelse>
		<cfset attributes.name = "default"/>
	</cfif>
</cfif>

<cfif attributes.name neq "default">
	<cfparam name="attributes.action" default="#attributes.name#.cfm?#cgi.QUERY_STRING#"/>
</cfif>
<cfparam name="attributes.action" default="#cgi.SCRIPT_NAME#?#cgi.QUERY_STRING#"/>


<!--- *** CONFIG VARIABLES *** --->
<!--- Adding config variables for specific form name --->
<cfset structAppend(config,getConfig(tag,attributes,request),false)/>

<!--- *** HTML VARIABLES *** --->
<!--- Adding html variables for specific form name --->
<cfset attributes = getHtml(tag,attributes,request)/>